#include "WorkModeMenuTextLocalizationEnglish.h"

Factory < WorkModeMenuTextLocalizationInterface > WorkModeMenuTextLocalizationEnglish::factory;

WorkModeMenuTextLocalizationEnglish::WorkModeMenuTextLocalizationEnglish ()
{
}

WorkModeMenuTextLocalizationInterfacePtr WorkModeMenuTextLocalizationEnglish::Spawn ()
{
	return factory.CreateNewObject < WorkModeMenuTextLocalizationEnglish > ();
}

void WorkModeMenuTextLocalizationEnglish::CheckInnocence ()
{
	assert ( factory.ObjectsCount () == 0 );
}

std::string WorkModeMenuTextLocalizationEnglish::Menu ()
{
	return "\n\r"
		"========================\n\r"
		"Work mode selection menu\n\r"
		"========================\n\r"
		"1. Create new knowledge base\n\r"
		"2. Open existing knowledge base\n\r"
		"3. Change designation\n\r"
		"4. Make copy\n\r"
		"5. Quit\n\r"
		"------------------------\n\r"
		"6. Delete to trash can\n\r"
		"7. Restore from trash can\n\r"
		"8. Extract from package\n\r"
		"9. Import from FoxPro\n\r"
		"0. Import from Oracle\n\r"
		;
}

std::string WorkModeMenuTextLocalizationEnglish::InputWelcome ()
{
	return "\n\rEnter selection number: ";
}

std::string WorkModeMenuTextLocalizationEnglish::InvalidSelection ( std::string selection )
{
	return "Invalid selection: '" + selection + "'\n\r";
}

char WorkModeMenuTextLocalizationEnglish::SelectionCreateNew ()
{
	return '1';
}

char WorkModeMenuTextLocalizationEnglish::SelectionOpenExisting ()
{
	return '2';
}

char WorkModeMenuTextLocalizationEnglish::SelectionChangeDesignation ()
{
	return '3';
}

char WorkModeMenuTextLocalizationEnglish::SelectionMakeCopy ()
{
	return '4';
}

char WorkModeMenuTextLocalizationEnglish::SelectionQuit ()
{
	return '5';
}

char WorkModeMenuTextLocalizationEnglish::SelectionDeleteToTrashCan ()
{
	return '6';
}

char WorkModeMenuTextLocalizationEnglish::SelectionRestoreFromTrashCan ()
{
	return '7';
}

char WorkModeMenuTextLocalizationEnglish::SelectionExtractFromPackage ()
{
	return '8';
}

char WorkModeMenuTextLocalizationEnglish::SelectionImportFromFoxPro ()
{
	return '9';
}

char WorkModeMenuTextLocalizationEnglish::SelectionImportFromOracle ()
{
	return '0';
}

